package com.jy.api.hospital;

import com.jy.api.hospital.dto.HospitalDTO;
import com.jy.api.hospital.dto.JiGouDTO;
import com.jy.api.hospital.dto.ZhiGongDetailDTO;
import com.jy.api.okhttp.HospitalClient;
import com.jy.framework.base.entity.Page;
import com.jy.framework.base.entity.Result;

/**
 * 机构、职员 接口实现
 *@className(类名称):  HospitalAPIImpl
 *@description(类描述):
 *@author(创建人):  zsh
 *@createDate(创建时间):  2024年8月5日 下午2:19:10
 *@updateUser(修改人):  zsh
 *@updateDate(修改时间):  2024年8月5日 下午2:19:10
 *@updateRemark(修改备注):
 *@version(版本):  v1.0
 */
public class HospitalAPIImpl implements HospitalAPI {


	private HospitalClient hospitalClient;

    public HospitalAPIImpl(HospitalClient restTemplate){
        this.hospitalClient = restTemplate;
    }

	@Override
	public Result<String> huLianHTJG(JiGouDTO jiGouDTO) {
		Result<String> huLianHTJG = hospitalClient.huLianHTJG(jiGouDTO);
		return huLianHTJG;
	}

	@Override
	public Result<Page<JiGouDTO>> pageJiGouRhin(String id, String hospitalId, String hospitalName, String status,
			String jiGouFL, String jiGouFLMC, String jiGouFLFS, String address, String mobile, Integer from,
			Integer maxCount) {
		Result<Page<JiGouDTO>> pageJiGouRhin = hospitalClient.pageJiGouRhin(id, hospitalId, hospitalName, status, jiGouFL, jiGouFLMC, jiGouFLFS, address, mobile, from, maxCount);
		return pageJiGouRhin;
	}

	@Override
	public Result<String> huLianHTZG(ZhiGongDetailDTO zhiGongDetailDTO) {
		Result<String> huLianHTZG = hospitalClient.huLianHTZG(zhiGongDetailDTO);
		return huLianHTZG;
	}

	@Override
	public Result<Page<ZhiGongDetailDTO>> page4Rhin(String zgGh, String status, String name, String zcMc, String zcDm,
			Integer from, Integer maxCount, String hospitalId) {
		Result<Page<ZhiGongDetailDTO>> page4Rhin = hospitalClient.page4Rhin(zgGh, status, name, zcMc, zcDm, from, maxCount, hospitalId);
		return page4Rhin;
	}

	@Override
	public Result<HospitalDTO> info(String hospitalId) {
		Result<HospitalDTO> info = hospitalClient.info(hospitalId);
		return info;
	}

}
